package com.ttbj.order.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ttbj.order.po.Order;
import com.ttbj.product.bean.dto.OrderDto;

public interface OrderMapper {
    int deleteByPrimaryKey(Long orderId);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Long orderId);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);
    
    List<OrderDto> getOrderByOpenId(@Param("userId") Long userId); //根据openId查询订单信息

	Integer getPayState(@Param("orderId") Long orderId); //获取订单状态
}